﻿@model ExcellOnServices.Models.Product

@{
    ViewBag.Title = "Details";
}

<div class="page-header">
    <h3>@Html.DisplayFor(model => model.Name)</h3>
</div>
<div>
    <div class="media">
        <img src="@Model.ImageUrl" title="@Model.Name" class="pull-left" width="190" />
        <div class="media-body">
            <p>
                <strong>
                    @Html.DisplayNameFor(model => model.Price)
                </strong> : $ @Model.Price
            </p>

            <p>
                <strong>
                    @Html.DisplayNameFor(model => model.Discount)
                </strong> : $ @Model.Discount
            </p>

            <p>
                <strong>
                    @Html.LabelFor(model => model.Category.Name, "Category")
                </strong> : @Html.DisplayFor(model => model.Category.Name)
            </p>

            <p>
                <strong>
                    @Html.DisplayNameFor(model => model.Description)
                </strong> : @Html.Raw(@Model.Description)
            </p>
            <p>
                @Html.ActionLink("Back to List", "Index", null, new { @class = "btn btn-primary btn-sm" })
            </p>
        </div>
    </div>
</div>